package com.prjsystem.aop;

import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.transaction.support.DefaultTransactionStatus;
import org.apache.log4j.Logger;

public class AppTransactionManager extends DataSourceTransactionManager {

	/**
	 * 
	 */
	private static final long serialVersionUID = -4773172756287539848L;
	private static Logger logger = Logger.getLogger(AppTransactionManager.class);
	
	protected void doCommit(DefaultTransactionStatus arg0){
		logger.info("transaction started");
		super.doCommit(arg0);
		logger.info("transaction ended");
	}
}
